/* ===== 基础重置 ===== */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* ===== 背景图片半透明效果 ===== */
body {
	font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
	line-height: 1.6;
	color: #333;
	padding: 20px;
	min-height: 100vh;
	position: relative;
	/* 新增 */
	/* 移除原有的背景色 */
}

/* 背景层伪元素 */
body::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url('/static/img/girl.webp') center/cover no-repeat;
	/* 使用你的图片 */
	opacity: 0.3;
	/* 透明度调整为30% */
	z-index: -1;
	/* 置于底层 */
}


/* ===== 容器样式 ===== */
.container {
	max-width: 500px;
	margin: 50px auto;
	padding: 25px;
	background: rgba(255, 255, 255, 0.5);
	/* 改为半透明白色背景 */
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	/* 加深阴影增强层次 */
	position: relative;
	/* 确保内容在背景上层 */
	backdrop-filter: blur(2px);
	/* 添加轻微毛玻璃效果 */
}

h1 {
	text-align: center;
	margin-bottom: 25px;
	color: #2c3e50;
	font-weight: 600;
}

/* ===== 文件上传区域 ===== */
.upload-area {
	display: flex;
	flex-direction: column;
	gap: 15px;
}


.file-input-label {
	display: block;
	padding: 15px;
	border: 2px dashed #4CAF50;
	border-radius: 10px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	overflow: hidden;
	text-overflow: ellipsis;
}

.file-input-label:hover {
	background: #e9f5e999;
	border-color: #45a049;
}

#fileInput {
	position: absolute;
	left: -9999px;
	opacity: 0;
}

/* ===== 按钮样式 ===== */
.upload-btn {
	background: linear-gradient(135deg, rgba(76, 175, 80, 0.9), rgba(69, 160, 73, 0.9));
	color: white;
	padding: 14px;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 500;
	transition: all 0.3s ease;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.upload-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
	background: linear-gradient(135deg, #45a049, #4CAF50);
}

.upload-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.upload-btn:disabled {
	background: #cccccc;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* ===== 进度条样式 ===== */
.progress-container {
	margin: 20px 0;
}

.progress-label {
	display: flex;
	justify-content: space-between;
	margin-bottom: 5px;
	font-size: 0.9rem;
	color: #666;
}

#progressBar {
	width: 100%;
	height: 20px;
	border-radius: 10px;
	background: #e9ecef;
	overflow: hidden;
}

#progressBar::-webkit-progress-bar {
	background: #e9ecef;
	border-radius: 10px;
}

#progressBar::-webkit-progress-value {
	background: linear-gradient(to right, #4CAF50, #2E7D32);
	border-radius: 10px;
	transition: width 0.3s ease;
}

/* ===== 状态消息 ===== */
#status {
	margin-top: 15px;
	padding: 12px 15px;
	border-radius: 8px;
	font-size: 0.95rem;
	text-align: center;
	transition: all 0.3s ease;
}

.status-default {
	background: rgba(233, 245, 233, 0.6);
	color: #2E7D32;
	overflow: hidden;
	text-overflow: ellipsis;
}

.success {
	background: rgba(223, 240, 216, 0.6);
	color: #3c763d;
}

.error {
	background: rgba(242, 222, 222, 0.6);
	color: #a94442;
}

/* ===== 响应式设计 ===== */
@media (max-width: 600px) {
	.container {
		width: 90%;
		margin: 30px auto;
		padding: 20px;
	}

	h1 {
		font-size: 1.5rem;
	}

	.file-input-label,
	.upload-btn {
		padding: 12px;
		font-size: 1rem;
	}

	#progressBar {
		height: 16px;
	}
}